package tuvienna.jade.participant;

import jade.core.AID;

import java.math.BigDecimal;

/**
 * This can be seen as the memory an Participant has of a
 * table. 
 *
 */
public class TableInformation {
	private int size = -1;
	private AID aid;
	private BigDecimal lastGainedKnowledge = null;
	private int lastGainedKnowledgeTime = -1;
	private int lastGainedKnowledgSize = -1;
	
	public TableInformation(AID aid) {
		super();
		this.aid = aid;
	}

	public AID getAID() {
		return aid;
	}
	
	public BigDecimal getLastGainedKnowledge() {
		return lastGainedKnowledge;
	}

	public void setLastGainedKnowledge(BigDecimal lastGainedKnowledge, int time, int size) {
		this.lastGainedKnowledge = lastGainedKnowledge;
		this.lastGainedKnowledgeTime = time;
		this.lastGainedKnowledgSize = size;
	}

	public int getLastGainedKnowledgeTime() {
		return lastGainedKnowledgeTime;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getLastGainedKnowledgSize() {
		return lastGainedKnowledgSize;
	}
	
	public String getName() {
		return aid.getLocalName();
	}
	

}
